package com.gxuwz.endrskyweather.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class LifeIndex implements Serializable {

    // 穿衣指数
    @SerializedName("穿衣指数")
    private LifeIndexItem dress;
    // 紫外线指数
    @SerializedName("紫外线指数")
    private LifeIndexItem ultraviolet;
    // 感冒指数
    @SerializedName("感冒指数")
    private LifeIndexItem cold;
    // 洗车指数
    @SerializedName("洗车指数")
    private LifeIndexItem carWash;
    // 运动指数
    @SerializedName("运动指数")
    private LifeIndexItem sport;
    // 过敏指数
    @SerializedName("过敏指数")
    private LifeIndexItem allergy;

    public LifeIndex() {}

    public LifeIndex(LifeIndexItem dress, LifeIndexItem ultraviolet, LifeIndexItem cold, LifeIndexItem carWash, LifeIndexItem sport, LifeIndexItem allergy) {
        this.dress = dress;
        this.ultraviolet = ultraviolet;
        this.cold = cold;
        this.carWash = carWash;
        this.sport = sport;
        this.allergy = allergy;
    }

    public LifeIndexItem getDress() {
        return dress;
    }

    public void setDress(LifeIndexItem dress) {
        this.dress = dress;
    }

    public LifeIndexItem getUltraviolet() {
        return ultraviolet;
    }

    public void setUltraviolet(LifeIndexItem ultraviolet) {
        this.ultraviolet = ultraviolet;
    }

    public LifeIndexItem getCold() {
        return cold;
    }

    public void setCold(LifeIndexItem cold) {
        this.cold = cold;
    }

    public LifeIndexItem getCarWash() {
        return carWash;
    }

    public void setCarWash(LifeIndexItem carWash) {
        this.carWash = carWash;
    }

    public LifeIndexItem getSport() {
        return sport;
    }

    public void setSport(LifeIndexItem sport) {
        this.sport = sport;
    }

    public LifeIndexItem getAllergy() {
        return allergy;
    }

    public void setAllergy(LifeIndexItem allergy) {
        this.allergy = allergy;
    }

    @Override
    public String toString() {
        return "LifeIndex{" +
                "dress=" + dress +
                ", ultraviolet=" + ultraviolet +
                ", cold=" + cold +
                ", carWash=" + carWash +
                ", sport=" + sport +
                ", allergy=" + allergy +
                '}';
    }

    public class LifeIndexItem implements Serializable {
        private String state;
        private String reply;

        public LifeIndexItem() {}

        public LifeIndexItem(String state, String reply) {
            this.state = state;
            this.reply = reply;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getReply() {
            return reply;
        }

        public void setReply(String reply) {
            this.reply = reply;
        }

        @Override
        public String toString() {
            return "LifeIndexItem{" +
                    "state='" + state + '\'' +
                    ", reply='" + reply + '\'' +
                    '}';
        }
    }
}
